<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>demo04文字相关</title>
    <style>
        p {
            font-size: 30px;
            font-family: "幼圆","微软雅黑";
        }
        a {
            text-decoration: none;
            text-decoration:underline;
            text-decoration:overline;
            text-decoration:line-through;
        }
        div {
            width: 200px;
            height: 200px;
            background-color: lightgreen;
            text-align: center;
            line-height: 200px;
        }

        h1 {
            font-weight:lighter;
            font-weight:normal;
            font-weight:bold;
            font-style:italic;
        }

        span {
            text-shadow: 20px -5px 2px red
        }
    </style>
</head>
<body>
<p>我是测试文字 123 ABC abc</p>
<a href="#">超链接</a>
<div>
    测试文字
</div>
<span>测试文字</span>
<h1>标题字</h1>
</body>
</html>